Test\Integration\CreditCardTest A

Total Complexity 74
Dependencies 14
Dependents 0
Total lines 1,315
Lines of code 1,137
Logical lines of code 470
Comment lines 0
Methods 69
Properties 0

Methods 69

Method Rating Maintainability Complexity Lines of code
testExpiringBetween_parsesCreditCardDetailsUnderTransactionsCorrectly()
S
59 4 14
testUpdateFromTransparentRedirect_andUpdateExistingBillingAddress()
S
45 1 44
testCreate_withBillingAddress()
S
45 1 42
testFindReturnsAssociatedSubscriptions()
S
49 1 31
testUpdate_updatesExistingBillingAddressIfUpdateExistingOptionIsTrue()
S
50 1 30
testExpiringBetween()
S
58 2 14
testUpdateFromTransparentRedirect_withDefault()
S
52 1 27
testExpired()
S
62 2 11
testUpdate_withCardVerification()
S
53 1 23
testUpdate_withDefault()
S
54 1 22
testUpdateFromTransparentRedirect()
S
54 1 22
testCreateWithVerificationAmount()
S
53 1 22
testCreate_withDefault()
S
54 1 22
testCreateFromTransparentRedirect()
S
54 1 22
testGatewayRejectionOnCVV()
S
54 1 21
testGatewayRejectionIsNullOnProcessorDecline()
S
54 1 21
testGatewayCreate()
S
54 1 21
testUpdate_withCardVerificationAndSpecificMerchantAccount()
S
55 1 20
testCreate_withCardVerificationAndOverriddenAmount()
S
54 1 20
testUpdate()
S
55 1 20
testCreateFromTransparentRedirect_withDefault()
S
56 1 20
testUpdate_createsNewBillingAddressByDefault()
S
56 1 19
testUpdateNoValidate()
S
55 1 19
testSaleNoValidate_createsASaleUsingGivenTokenAndCvv()
S
56 1 19
testUnknownCardTypeIndicators()
S
55 1 19
testCreate()
S
55 1 18
testCreate_withCardVerification()
S
55 1 18
testAddCardToExistingCustomerUsingNonce()
S
56 1 18
testCreate_withValidationErrors()
S
55 1 18
testUpdate_canChangeToken()
S
56 1 18
testCreate_withExistingBillingAddress()
S
57 1 17
testCreate_withCardVerificationAndSpecificMerchantAccount()
S
56 1 17
testNegativeCardTypeIndicators()
S
56 1 17
testCredit_createsACreditUsingGivenToken()
S
57 1 17
testFind()
S
56 1 17
testCreate_withExpirationMonthAndYear()
S
57 1 16
testCreditNoValidate_createsACreditUsingGivenToken()
S
58 1 16
testSale_createsASaleUsingGivenToken()
S
58 1 16
testCreate_withDuplicateCardCheck()
S
58 1 15
testFromNonce()
S
58 1 15
testSaleNoValidate_createsASaleUsingGivenToken()
S
59 1 15
testFromNonce_ReturnsErrorWhenNonceIsConsumed()
S
58 1 15
testCreateNoValidate_returnsCreditCardIfValid()
S
59 1 14
testFromNonce_ReturnsErrorWhenNoncePointsToSharedCard()
S
60 1 13
testCreate_with_venmoSdkSession()
S
60 1 13
testCreate_with_invalidVenmoSdkSession()
S
60 1 13
testCreditNoValidate_throwsIfInvalid()
S
61 1 13
testUpdateNoValidate_throwsIfInvalid()
S
60 1 13
testCreate_withSpecifyingToken()
S
60 1 13
testSaleNoValidate_throwsIfInvalid()
S
61 1 13
testCreate_withCardVerificationReturnsVerificationWithRiskData()
S
61 1 12
testDelete_deletesThePaymentMethod()
S
61 1 12
testCreate_withSecurityParams()
S
61 1 12
testHealthCareCard()
S
61 1 12
testPayrollCard()
S
61 1 12
testDebitCard()
S
62 1 11
testIssuingBankCard()
S
62 1 11
testCountryOfIssuanceCard()
S
62 1 11
testDurbinRegulatedCard()
S
62 1 11
testPrepaidCard()
S
62 1 11
testCommercialCard()
S
62 1 11
testCreate_withVenmoSdkPaymentMethodCode()
S
64 1 9
updateCreditCardViaTr()
S
64 1 10
createCreditCardViaTr()
S
64 1 10
testFind_throwsUsefulErrorMessagesWhenInvalid()
S
75 1 4
testFind_throwsIfCannotBeFound()
S
76 1 4
testCreateNoValidate_throwsIfValidationsFail()
S
68 1 7
testFind_throwsUsefulErrorMessagesWhenEmpty()
S
75 1 4
testCreate_with_invalid_venmoSdkPaymentMethodCode()
S
63 1 10